import type { RouteRecordRaw } from 'vue-router'

const permissionRouter: RouteRecordRaw = {
    path: '/permission',
    component: () => import('@/layout/Index.vue'),
    children: [
        {
            path: 'index',
            component: () => import('@/views/permission/UserPermissionList.vue'),
            meta: {
                title: '用户权限',
                level: 2
            }
        },
        {
            path: 'permissionDivide',
            component: () => import('@/views/permission/permissionDivide.vue'),
            meta: {
                title: '权限划分',
                level: 2
            }
        },
        {
            path: 'permissionInformation',
            component: () => import('@/views/permission/permissionInformation.vue'),
            meta: {
                title: '权限信息',
                level: 2
            }
        },
    ],
    meta: {
        title: '权限管理',
        icon: 'qianbao',
        level: 1,
        hasChild: true
    }
}

export default permissionRouter